﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DQ.Helper
{
    public class Common
    {
        public static void IfElse(Func<bool> func, Action trueDo, Action falseDo)
        {
            if (func())
            {
                trueDo();
            }
            else
            {
                falseDo();
            }
        }
    }
}
